<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
	<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=UTF-8">
	<TITLE></TITLE>
	<META NAME="GENERATOR" CONTENT="OpenOffice.org 3.2  (Win32)">
	<META NAME="CREATED" CONTENT="0;0">
	<META NAME="CHANGEDBY" CONTENT="Exson Qu">
	<META NAME="CHANGED" CONTENT="20110225;21420200">
	<META NAME="CHANGEDBY" CONTENT="Exson Qu">
</HEAD>
<BODY LANG="zh-CN" DIR="LTR">
<P><A NAME="NewScripts"></A><FONT FACE="Times New Roman, serif"><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><BR><BR></SPAN></FONT></FONT></SPAN></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=5 STYLE="font-size: 20pt"><B>开发新脚本</B></FONT></FONT><FONT SIZE=4>
</FONT><FONT FACE="Times New Roman, serif"><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><BR><BR></SPAN></FONT></FONT></SPAN></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=5 STYLE="font-size: 20pt"><B>目录结构</B></FONT></FONT><FONT FACE="Times New Roman, serif"><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><BR><BR></SPAN></FONT></FONT></SPAN></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>组成系统的脚本被分成几个目录，然而，</FONT></FONT><FONT FACE="Times New Roman, serif"><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">webERP</SPAN></FONT></FONT></SPAN></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>脚本的主要部分在第一级目录。</FONT></FONT></P>
<UL>
	<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>第一级目录包含系统中的链接直接调用的脚本。最基本的设计准则是避免偶尔或者新手</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">PHP</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>程序员不得不在不同的文件中检视代码以理解系统逻辑。研发人员将很少需要查看主要的根路径和</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">includs</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>以外的其他路径中的文件。</FONT></FONT></P>
	<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>在主脚本中引起的其他或者部分脚本包含在</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">includes/</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>次级目录下。大量的引用使用方法与函数的方法相似。</FONT></FONT></P>
	<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>在</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">includes</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>路径下的大量的次级目录值得一看，特别是</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">php-plot</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>路径包含</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">php-plot</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>类（由</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">Miguel
	de Benito Delgado </FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>和其他人&mdash;作为一个分开的项目维护）</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">,
	webERP</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>使用此类来创建销售分析查询图表。</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">Php-gettext</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>类（由
	</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">Danilo
	Segan</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>创建），被</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">webERP</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>用来翻译。它使用</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">locale</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>路径下的文件，当</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">php</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>二进制</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">gettext</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>库没有安装时，可以使用这个类。在实践上，当</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">webERP</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>运行在多语言环境时，最好安装</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">php</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>的</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">gettext</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>库。同时，</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">TCPDF</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>类是</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">Olivier
	Plathey</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>的</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">FPDF</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>类的衍生，它由</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">Nicola
	Asuni</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>开发，使得</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">webERP</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>创建的</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">pdf</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>文件可以使用</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">utf8</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>编码和</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">CID</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>字体&mdash;这使得</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">webERP</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>可以创建轻量级的</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">pdf</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>文件，而文件所用的字符均由</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">adobe
	acrobat reader </FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>提供。尽管这个类作为独立的项目维护，
	</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">Javier
	de Lorenzo-C&Atilde;&iexcl;ceres
	</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>做了一些修改以使</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">CID</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>字体被正确映射。这个类是一个非常大的文件集，</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">webERP</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>做了极大精简，去掉了文件和例子。</FONT></FONT></P>
	<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>创建数据库的脚本位于</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">sql</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>路径。此路径下目前只有</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">mysql</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>路径，这是因为当下仅仅支持</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">mysql
	RDBMS</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>。以前有个</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">pg</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>路径</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">,</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>存放</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">postgre
	sql</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>脚本</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">.</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>在</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">sql</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>目录下的</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">mysql</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>路径</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">,</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>是由</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">mysqldump</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>生成的</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">sql</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>脚本。有一个脚本用来新建系统，它仅仅包含最少的数据来启动系统，这就是</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">weberp-new.sql.</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>同时还有一个脚本用来创建演示系统&mdash;</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">weberp-demo.sql.
	</SPAN></FONT></FONT>
	</P>
	<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">Local</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>路径包含所安装的不同的语言翻译包。默认只安装了</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">en_GB.utf8.
	</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>有很多其他语言包可以下载，然后安装在这个路径。在</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">locale</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>路径下，每种语言必须安装在服务器上的与该语言名称相同的路径下。在这个路径下，路径</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">LC_MESSAGES</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>包含两个文件，一个是</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">messages.po
	&ndash;
	</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>包含所有翻译和</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">messages.mo</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>文件，它被编译成二进制数索引文件，使用</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">gettext</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>功能查找翻译的内容，以实现国际化。</FONT></FONT></P>
	<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>文件在路径</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">doc/</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>次级路径下，而此手册是包含在</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">doc/Manual</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>路径下的。特定语言的手册在</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">locale/</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>该语言的路径下。</FONT></FONT></P>
	<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">api
	</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>路径包含所有的</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">api</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>脚本
	</FONT></FONT>
	</P>
	<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">xmlrpc</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>包含</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">api</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>需要的</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">XML-RPC</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>的客户端和服务器代码。</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">WebERP</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>使用</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">G.
	Giunta</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>创建了类来达成此目的</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">--</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>它是</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">XML-RPC</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>类的整个目录树。</FONT></FONT></P>
	<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">Numbers</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>目录包含</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">PEAR</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>类以用来将数字转化为字。</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">--</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>这些代码被</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">webERP</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>用来写支票。此类不需要安装</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">PEAR</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>，因为</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">PEAR</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>给</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">PHP</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>增加了大量的开销，它对于</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">webERP</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>不是必须的，因此这些代码和</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">webERP</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>一起绑定发行。</FONT></FONT></P>
	<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">install</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>目录是保存最小安装脚本的地方&mdash;如果需要，安装完后可以删除。仅仅在</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">config.php</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>不存在的情况下</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">--</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>也就是在新的安装时，这些脚本才会被使用。</FONT></FONT></P>
	<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">Flags</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>目录包含</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">ISO
	4217</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>货币代码缩写对应的国旗小图片&mdash;每个文件都是用</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">ISO</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>代码</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">.jpg</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>命名。这些显示在</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">webERP</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>的货币界面上。</FONT></FONT></P>
	<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">FPDI</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>路径是</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">TCPDF</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>的扩展，它允许将其他</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">pdf</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>文件与系统产生的</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">PDF</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>文件合并在一起</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">---</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>这个类是由</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">Setasign
	&ndash; Jan
	Slabon</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>创建和维护。</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">webERP</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>允许用户选择文件附在发票后面</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">--</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>这个功能需要这个类并且所选文件需要存放在这个路径</FONT></FONT>。</P>
	<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>样式表位于</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">css</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>路径</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">--</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>请参照手册初始部分关于主题部分。在</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">css</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>路径，每个主题都有一个目录树。要创建一个新的主题，仅仅需要复制一个已经存在的路径到一个新的</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">css</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>目录</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">--</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>它将被</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">webERP</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>自动选择为一个新的主题。</FONT></FONT></P>
	<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">j<FONT FACE="楷体_GB2312, monospace">avascripts</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>路径仅仅包含一个文件，它会被每一个</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">webERP</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>脚本的头部引用，并且包含</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">webERP</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>使用的所有</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">javascript.</FONT></SPAN></FONT></FONT></P>
	<LI><P><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">Reportwriter</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>目录包含</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">webERP</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>使用的报告生成工具&mdash;它由</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">Dave
	Premo</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>贡献，</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">Dave</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>是</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">Phreebooks</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>的作者。这个部分没有遵照</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">webERP</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>的任何惯例，但是为</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">webERP</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>提供了非常重要的功能。报告生成工具下面有一个完整的其他路径，这些代码非常难以理解。让人高兴的是</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">Dave</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>编写了一些很好的指南以帮助人们使用。</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><BR></SPAN></FONT></FONT><BR><BR>
	</P>
	<P><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>在编写新的脚本时需要使用下列在整个系统中使用的代码块。</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><BR><BR><B>session.inc</B>
	<BR></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>此页面在为变量</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">$PageSecurity</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>赋予一个适当的整数值（参考安全计划部分）之后必须被引用，
	</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">session.inc</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>有下列功能：</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><BR></SPAN></FONT></FONT><BR><BR>
	</P>
	<LI><P><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>如果没有的话，会设置一个</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">session,</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>并且检查登录的是一个合法用户
	&ndash; 如果是这样，那么它会检查用户对于调用的特定页面是否有权限，依据是</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">$PageSecurity</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>值。</FONT></FONT></P>
</UL>
<UL>
	<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>它依序引用下列脚本：</FONT></FONT></P>
	<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">config.php
	- </SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>这个脚本包含要连接数据库的细节。</FONT></FONT></P>
	<P STYLE="margin-bottom: 0cm"></P>
	<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">GetConfig.php</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>脚本确保所有已经定义并且保存在数据库的系统变量被取出并且可以由系统作为</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">SESSION</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>变量访问。</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">GetConfig.php</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>读取数据库中的</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">company</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>表，它包含单个公司的记录。它也读取数据库的</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">config</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>表&mdash;它包含了所有的系统参数</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">--</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>他们被保存在</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">session</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>变量里以避免每页都要重复访问数据库。开发人员需要研究这些参数，他们在</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">SystemParameters.php</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>页面，可以通过设置</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">--&gt;</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>系统访问。</FONT></FONT></P>
	<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">ConnectDB.inc
	&ndash;
	</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>这个脚本（它也依序包含了</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">includes/ConnectDB-mysqli.inc</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>或者</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">includes/ConnectDB_mysqli.inc&mdash;</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>历史上，还有一个</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">includes/ConnectDB_Postgres.inc</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>选项）启动了一个到数据库的链接并且包含所有的数据库抽象函数。当与数据库交互时，只有在这里定义的函数才会被使用，而非</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">mysql</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>的特定函数，否则的话，改变数据库将是一个非常困难的事情。通过使用这个文件，要使用其他的数据库的话，仅仅需要修改这个脚本中的函数。</FONT></FONT></P>
	<LI><P><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">LanguageSetup.php
	- </SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>这个设置了</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">locale</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>并且负责处理使用</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">php-gettext</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>，如果</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">web</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>服务器上没有本地的</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">gettext</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>库的话。</FONT></FONT></P>
</UL>
<P><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><B>header.inc</B>
<BR></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>当</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">$Title</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>被设置为页面名称后，需要引用这个文件。这个文件依赖已经上传的</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">config.php</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>，因此</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">session.inc(</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>它依序包含了</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">config.php)</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>必须在</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">header.inc</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>之前引用。这个脚本的代码有以下作用：</FONT></FONT></P>
<UL>
	<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>引用脚本中使用的</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">javascript</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>函数，他们存在于文件</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">javascripts/MisFunctions.js</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>中。</FONT></FONT></P>
	<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>设置正常的系统标识，连同到主菜单，商品，顾客和供应商页面的链接。</FONT></FONT></P>
	<LI><P><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>设置整个系统使用的样式表</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">--</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>通过指向所使用的</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">css</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>路径。</FONT></FONT>
		</P>
</UL>
<P><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><B>footer.inc</B>
<BR></SPAN></FONT></FONT><BR><BR>
</P>
<P><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>这个文件包含小的</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">logo,</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>公司名称和版权信息，使用双引号标签。</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><BR><BR><BR><B>config.php</B>
</SPAN></FONT></FONT>
</P>
<P><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><BR><FONT FACE="楷体_GB2312, monospace">config.php</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>中的变量可以由所有引用了</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">session.inc</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>的脚本访问。现在已经没有那么多变量了，大多配置使用</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">config</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>表保存在数据库中。然而，让软件连接数据库信息的变量，例如数据库用户，密码和主机连同数据库类型&mdash;</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">dbtype&mdash;</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>实际上仅仅支持</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">mysql,</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>但是有两个库可以使用，一个是</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">mysqli</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>和旧的</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">mysql</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>函数。还有一些其他的变量包括时区</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">timezone</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>，</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">$RootPath&mdash;</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>指</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">web</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>服务器存放系统文件的地方。还有</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">error_reporting</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>代码。</FONT></FONT></P>
<P><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><BR></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>在使用了</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">session.inc</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>和</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">header.inc</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>开始了页面之后
&ndash;
然后使用</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">footer.inc</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>结束，这些保证页面看起来和可以感觉到的一致性工作大部分完成了。</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><BR><BR><BR><B>PDFStarter.php</B>
<BR></SPAN></FONT></FONT><BR><BR>
</P>
<P><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>不适于引用</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">session.inc</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>或者</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">header.inc</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>的唯一场合是要创建</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">pdf</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>脚本。</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">PDFStarter.php</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>包含启用</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">session</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>和检查适当的用户权限以及使用</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">$PageSecurity</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>（它必须在包含</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">PDFStarter.php</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>前定义）检查指定页面的访问权限。正常情况下，</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">config.php</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>和</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">ConnnectDB.inc</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>在</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">PDFStarter.php</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>脚本中被分开引用（并且在</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">PDF_starter_ros.inc)</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>之前。</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">PDF</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>报告脚本全部使用</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">FPDF</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>类，它由</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">Oliver
Plathey</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>创建，但是在此之前使用了另一类，因此有个扩展来将调用旧的</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">pdf</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>类翻译到</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">FPDF</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>类。可能最好用</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">FPDF</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>语法写新的脚本。</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><BR><BR><B>Database
Abstraction - ConnectDB.inc</B> </SPAN></FONT></FONT>
</P>
<P><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><BR></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>当系统使用</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">MySql</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>开发的时候，有一个事情一定要记住，就是用户不应该被强制使用</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">Mysql&mdash;</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>以与开源的原则保持一致。因此所有对于数据库的请求都通过</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">ConnectDB.inc</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>中的抽象函数进行。这个政策被严格执行，不符合这个原则而研发的扩展将破坏目前数据库之间的可移植性。不用</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">PHP</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>数据库特定的函数，而是要用定义在</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">ConnectDB_mysql.inc</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>里的函数</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><BR></SPAN></FONT></FONT><BR><BR>
</P>
<UL>
	<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">$DB_result_handle
	=
	DB_query(<I>$sql,$db,$ErrorMessage='',$DebugMesage='',$InsideATransaction=0</I>)
	</SPAN></FONT></FONT>
	</P>
	<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">$NumberOfRowsReturned
	= DB_num_rows(<I>$DB_result_handle</I>) </SPAN></FONT></FONT>
	</P>
	<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">$QueryResultNamedElementArray
	= DB_fetch_array(<I>$DB_result_handle</I>) </SPAN></FONT></FONT>
	</P>
	<LI><P><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">$QueryResultArray
	= DB_fetch_row(<I>$DB_result_handle</I>) </SPAN></FONT></FONT>
	</P>
</UL>
<P><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>函数的完整列表需要从</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">includes/ConnectDB_mysql.inc</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>取得&mdash;它包含</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">mysql</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>指定的抽象函数。仅仅这些函数可以在其他脚本中使用。研发过程中，已经极为谨慎地确保全部使用标准的</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">SQL</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>规范，以保证数据库转换的问题最小。任何关系型数据库</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">RDBMS</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>的特定</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">SQL</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>都要避免（</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">mysql</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>也不例外），以支持通用的</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">SQL</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>标准。有过使用</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">mysql</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>特定</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">SQL</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>的例子，例如</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">INTERVAL</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>和</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US">SHOW
TABLES--</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>但这些都已是历史。</FONT></FONT></P>
<P><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><BR><B>DateFunctions.inc</B>
<BR></SPAN></FONT></FONT><BR><BR>
</P>
<P><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>这脚本包含很多在整个系统中用来处理日期的函数&mdash;这些函数依靠系统的配置
</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">SESSION['DefaultDateFormat'].
</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>最常见的是：</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><BR>
</SPAN></FONT></FONT><BR><BR>
</P>
<UL>
	<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><I>DateDiff</I>
	- </SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>计算日期之间的差异，它有参数以表示天数，周数和月数。</FONT></FONT></P>
	<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><I>FormatDateForSQL</I>
	</SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>转换日期的格式为</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">config.php</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>中</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">$DefaultDateFormat</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>指定的格式以符合</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">SQL</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>的要求&mdash;</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">yyyy-mm-dd.
	</FONT></SPAN></FONT></FONT>
	</P>
	<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><I>ConvertSQLDate</I>
	&ndash; </SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>将</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">SQL</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>格式的日期</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">yyyy-mm-dd</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>转换为</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">config.php</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>中定义的</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">$DefaultDateFormate</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>格式。</FONT></FONT></P>
	<LI><P><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><I>GetPeriodNo</I>
	- </SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>通过查询</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">period</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>表得到指定日期所属的会计期间</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">--</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>需要时会创建一个新的期间以保证返回一个有效的期间。</FONT></FONT></P>
</UL>
<P><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><B>SQL_CommonFuctions.inc</B>
<BR></SPAN></FONT></FONT><BR><BR>
</P>
<P><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>这个脚本有些在整个系统中使用的共同函数</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">--</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>特别是：</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><BR></SPAN></FONT></FONT><BR><BR>
</P>
<UL>
	<LI><P><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><I>GetNextTransNo</I>
	- </SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>对于一个指定的交易类型找出下一个交易编号</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">--</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>参考</FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4><SPAN LANG="en-US"><FONT FACE="楷体_GB2312, monospace">systypes</FONT></SPAN></FONT></FONT><FONT FACE="楷体_GB2312, monospace"><FONT SIZE=4>表，以找到有效的交易类型代码列表。
	</FONT></FONT>
	</P>
</UL>
</BODY>
</HTML>